﻿<Window
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ee="http://schemas.microsoft.com/expression/2010/effects" x:Class="FirstWPFApp.MainWindow"
        Title="FrequncyPlayer" Height="500" Width="600">
	<Grid>
		<Grid.ColumnDefinitions>
			<ColumnDefinition/>
			<ColumnDefinition Width="312"/>
			<ColumnDefinition Width="20"/>
		</Grid.ColumnDefinitions>
		<Button Content="Play" HorizontalAlignment="Left" Height="91" Margin="35,271,0,0" VerticalAlignment="Top" Width="522" Click="Play" IsDefault="True" Background="#FF178F32" Grid.ColumnSpan="2">
			<Button.Effect>
				<DropShadowEffect FrameworkElement.FlowDirection="RightToLeft" RenderingBias="Quality"/>
			</Button.Effect>
		</Button>
		<TextBox HorizontalAlignment="Left" Height="37" Margin="10,196,0,0" TextWrapping="Wrap" VerticalAlignment="Top" Width="239" TextChanged="FrequncyChanged" Text="100" Background="#FFD8D8D8"/>
		<TextBox HorizontalAlignment="Left" Height="37" Margin="95,196,0,0" TextWrapping="Wrap" Text="1000" VerticalAlignment="Top" Width="212" TextChanged="TimeChanged" Grid.Column="1" Background="#FFD8D8D8"/>
		<Button Content="停止" HorizontalAlignment="Left" Height="53" Margin="71,84,0,0" VerticalAlignment="Top" Width="120" Click="Stop" Background="#FF2531A6"/>
		<Button Content="退出" HorizontalAlignment="Left" Height="53" Margin="146,84,0,0" VerticalAlignment="Top" Width="120" Click="Exit" BorderBrush="#FF61BF45" Background="#FFDA0000" Grid.Column="1">
			<Button.Effect>
				<ee:EmbossedEffect/>
			</Button.Effect>
		</Button>
		<Button Content="Clear" HorizontalAlignment="Left" Height="24" Margin="169,156,0,0" VerticalAlignment="Top" Width="80" Click="FrequncyClear" Background="#FF00FFF3"/>
		<Button Content="+" HorizontalAlignment="Left" Height="20" Margin="4,196,0,0" VerticalAlignment="Top" Width="20" RenderTransformOrigin="-4.289,2.095" Click="FrequncyAdd100" Grid.Column="1"/>
		<Button Content="+" HorizontalAlignment="Left" Height="20" Margin="0,196,0,0" VerticalAlignment="Top" Width="20" RenderTransformOrigin="-4.289,2.095" Click="TimeAdd100" Grid.Column="2"/>
		<Button Content="-" HorizontalAlignment="Left" Height="20" Margin="4,221,0,0" VerticalAlignment="Top" Width="20" RenderTransformOrigin="-4.289,2.095" Click="FrequncyMinus100" Grid.Column="1"/>
		<Button Content="-" HorizontalAlignment="Left" Height="20" Margin="0,221,0,0" VerticalAlignment="Top" Width="20" RenderTransformOrigin="-4.289,2.095" Click="TimeMinus100" Grid.Column="2"/>
		<Label Content="频率(37~32767Hz)" HorizontalAlignment="Left" Height="35" Margin="10,156,0,0" VerticalAlignment="Top" Width="120"/>
		<Label Content="播放时间(毫秒)" HorizontalAlignment="Left" Height="24" Margin="95,156,0,0" VerticalAlignment="Top" Width="120" Grid.Column="1"/>
		<Button Content="Clear" HorizontalAlignment="Left" Height="24" Margin="227,156,0,0" VerticalAlignment="Top" Width="80" Click="TimeClear" Background="#FF00FFF3" Grid.Column="1"/>
		<Label Content="FrequncyPlayer 1.0&#xA;&#x9;&#x9;&#x9;&#x9;by xcBoy" HorizontalAlignment="Left" Height="69" Margin="35,10,0,0" VerticalAlignment="Top" Width="522" FontSize="18.667" FontWeight="Thin" FontFamily="Segoe Script" Grid.ColumnSpan="2"/>
		<Button Content="顺序扫描" HorizontalAlignment="Left" Height="50" Margin="35,382,0,0" VerticalAlignment="Top" Width="156" Click="Scan1" Background="#FF3C959E"/>
		<Button Content="倒序扫描" HorizontalAlignment="Left" Height="50" Margin="151,382,0,0" VerticalAlignment="Top" Width="156" Click="Scan2" Background="#FFBEFF32" Grid.Column="1"/>

	</Grid>
</Window>
